//
//  ZYMoonSegment.h
//  优学荟管理系统
//
//  Created by Ethan on 2017/9/26.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol ZYMoonSegmentDelegate <NSObject>
@optional
- (void)scrollToPage:(int)page;
@end
@interface ZYMoonSegment : UIView
@property (nonatomic, weak) id <ZYMoonSegmentDelegate> delegate;

@property(nonatomic, assign) CGFloat maxWidth;
@property(nonatomic,strong)NSMutableArray *titleList;
@property(nonatomic,strong)NSMutableArray *buttonList;
@property(nonatomic,weak)CALayer *LGLayer;
@property(nonatomic,assign)CGFloat bannerNowX;

+ (instancetype)initWithTitleList:(NSMutableArray *)titleList;
-(void)moveToOffsetX:(CGFloat)X;

@end
